package ru.rs;

public abstract class Duck {

	protected FlyBehavior fb;
	protected QuackBehavior qb;

	public void log(String s) {
		System.out.println(s);
	}

	public void swim() {
		log("I'm Swimming!");
	}

	public void display() {
		log("I'm abstract duck");
	}

	public void quack() {
		qb.quack();
	}

	public void fly() {
		fb.fly();
	}
}
